package zxd.util;

import java.util.HashMap;

/**
 * Created by 张旭东 on 2017/8/31.
 */
public class Data extends HashMap {

    public void put(Object o) {
        o.getClass();
        this.put(this.getName(o), o);
    }

    public String getName(Object o) {
        String fullName = o.getClass().getName();
        return fullName.substring(fullName.lastIndexOf(".")+1);
    }

    /*public static void main(String[] args) {
        Data data = new Data();

    }*/

}
